<div class="row">
    
      <div class="col-xs-12">
        <?php
        //显示表单验证错误信息
        echo (validation_errors() != '') ? '<div class="alert alert-danger" role="alert">'.validation_errors('<li>', '</li>').'</div>' : '';

        // 设置form标签属性
        $attributes = array('role' => 'form');
        echo form_open('project/edit', $attributes);
      ?>
          <div class="form-group">
            <input type="text" name="proname" value="<?php echo $project['proname']; ?>" class="form-control" id="proname" placeholder="项目名称">
          </div>
        
         <div class="form-group">  
             <div class="input-group date" id="datetimepicker1">  
                 <input type="text" name="starttime" value="<?php echo $project['starttime']; ?>" class="form-control" placeholder="选择时间" />  
                 <span class="input-group-addon">  
                 <span class="glyphicon glyphicon-calendar"></span>  
                 </span>
             </div>  
         </div>
        <script type="text/javascript">
        $(function () {  
            $('#datetimepicker1').datetimepicker({  
                format: 'YYYY-MM-DD hh:mm',  
                locale: moment.locale('zh-cn')  
            });  
        });
        </script>
        
          <input type="hidden" name="pid" value="<?php echo $project['id']; ?>">
          <button type="submit" class="btn btn-success">保存</button>
        </form>
      </div>

</div>

  
